package util
{
	
	import MyApp.Model.staff.Staff;
	
	import mx.collections.ArrayCollection;
	import mx.utils.ArrayUtil;
	import mx.utils.ObjectUtil;
	import mx.utils.StringUtil;
	import mx.validators.Validator;
	
	import util.validate.LoginOtherValidator;
	
	public class DBValidate
	{
		public function DBValidate()
		{
		}
		public static function onAllValidator(validators:Array):void{
			for(var i:int=0; i<validators.length; i++){
				validators[i].enabled=true;
			}
		}
		public static function offAllValidator(validators:Array):void{
			for(var i:int=0; i<validators.length; i++){
				validators[i].enabled=false;
			}
		}
		

		/**
		 * 验证员工的重复项
		 */
		public static function validateUniqueByStaff(staff:Staff):Array{
			var errorMsg:Array=new Array();
			
			return errorMsg;
		}
		public static function validateUniqueByStaffToUpdate(staff:Staff):Array{
			var errorMsg:Array=new Array();
			
			return errorMsg;
		}
	}
}